<html xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:insert="~{ /common/common_header:: meta('服务器公钥配置')}"></div>

    <div th:insert="~{ /common/common_header:: base}"></div>
    <div th:insert="~{ /common/common_header:: table}"></div>
    <div th:insert="~{ /common/common_header:: editable}"></div>

</head>
<body>
<!--模态框loading-->
<div th:insert="~{ /common/common_loading:: loading}"></div>
<!--模态框loading-->
<!--顶部导航条(用户信息)-->
<div th:insert="~{ /common/common_bar:: navbar}"></div>
<!--顶部导航条(用户信息)-->
<!--主体-->
<div class="container-fluid ">
    <div class="row">

        <!--左侧导航栏-->
        <div th:insert="~{ /common/common_menu:: menus}"></div>
        <!--左侧导航栏-->

        <!--右侧主题部分 configEdit start-->
        <div class="col-xs-12 col-sm-9 col-lg-10" id="configEdit" style="display: inline-block">

            <!--通用的tab-->
            <div th:insert="~{ /common/common_tab::tab('公钥')}"></div>
            <!--通用的tab-->

            <!--工具栏-->
            <div th:insert="~{ /common/common_bar:: toolbar('公钥筛选')}"></div>
            <!--工具栏-->

            <!--列表-->
            <div th:insert="~{ /common/common_body:: list}"></div>
            <!--列表-->

            <!--用做信息的添加-->
            <form id="add" class="form-horizontal" method="post" style="display: none">
                <div class="panel panel-default" style="position: relative">
                    <div class="panel-heading" >
                        <h3 class="panel-title" style="display: inline-block" id="typeTitle">公钥添加</h3>
                        <div style="position: absolute;right: 0.5%;top: 0.25%">
                            <button class="btn btn-primary" type="button" style="" onclick="confirmVal()">确定</button>
                            <button class="btn btn-danger" type="button" style="" onclick="clearVal()">清空</button>
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="form-group key required">
                            <label for="" class="col-sm-2 control-label">PubKey</label>
                            <div class="col-sm-9">
                                <textarea type="text" name="key" class="form-control  val"
                                          placeholder="-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAm/ENByT6p8NviAJhQpmZdvH3ZwZRnDiK3L0AhkwsQqAgJo+T
UTp7ia1inzESvVED7erhUPjtCPQdIZSAfSEM+P0lKYJ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OakENq1QHnFYpSmvoptp1jT4ssWySzLuJm4RnsGiI9u6+JEPXK
jsqSqnhfHmV9OLnvYIypawKBgBmu6hJtaXOOJInQYGRsD5JrYoWQhWd2xyqPPR+W
vHR7C+GuDvz0KUPzyzIAk7KJ7w780iyndsAUirav2LJDaWhCfTw4C8UUby+weQfR
wv9Kx0i20dbzyhF5sq39nyw6RFUO5VYiagnJ5ETq5EPpJ0Geryiz/Z71/kbWw91q
XeYxAoGAJWwJlr3y++ZURQjULaHF/EntXmysk+0/J90+Xx9CVA95mgaxcphh8TD1
E2xriWcRR06KljKWkcy2OQSGwLjWPstGhpnHz2vDTvWvIxAPlbZiUY5Prj5L8kVn
cLcZSWbX8rMM6XpyM6IR8hIu77CBK7tPf1B8CbDE0KQCARZ/LfI=
-----END RSA PRIVATE KEY-----"></textarea>
                            </div>
                        </div>
                        <div class="form-group key">
                            <label for="" class="col-sm-2 control-label">Pubkey短语</label>
                            <div class="col-sm-9">
                                <input type="text" name="phrase" class="form-control val" placeholder="">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-9">
                                <textarea type="text" name="desc" class="form-control val"
                                          placeholder="公钥描述"></textarea>
                            </div>
                        </div>

                    </div>
                </div>
            </form>
            <!--用做信息的添加-->
        </div>
        <!--右侧主题部分 configEdit end-->

    </div>
</div>
</div>
<!--都要依赖的基础js-->
<div th:insert="~{ /common/common_foot:: base}"></div>
<!--表格相关-->
<div th:insert="~{ /common/common_foot:: table}"></div>
<!--提示框 alert confirm-->
<div th:insert="~{ /common/common_foot:: bootbox}"></div>
<!--导出表格-->
<div th:insert="~{ /common/common_foot:: export}"></div>
<!--行内编辑,放在表格初始化之后-->
<div th:insert="~{ /common/common_foot:: editable}"></div>

<script th:src="@{/assets/js/key/ajax.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/key/key.js}" type="text/javascript"></script>

</body>
</html>
